package com.baizhi.springboot.dao;

import com.baizhi.springboot.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerDao {
    List<Banner> selectBannerByPage(@Param("offset")Integer offset, @Param("limit")Integer limit);

    Integer selectCount();

    void insertBanner(Banner banner);

    void deleteBanner(Integer id);

    Banner selectOneBanner(Integer id);

    void updateBanner(Banner banner);
}
